﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OPM.Models
{ 
    public class GetCase
    {
        public string[] org_id;
        public string ref_id { get; set; }
        public string ref_code { get; set; }
        public string terminal_type_id { get; set; }
        public Nullable<DateTime> date_closed { get; set; }
        public string summary_result { get; set; }
        public string summary_result_by { get; set; }
        public string summary_result_by_text { get; set; }
        public string channel_incoming_id { get; set; }
        public string call_backnull { get; set; } // ???
        public string call_back { get; set; }
        public string channel_outgoing_id { get; set; }
        public string customer { get; set; }
        public string detail { get; set; }
        public string org_text { get; set; }
        public string case_org_status_text { get; set; }
        public string case_org_summary_result { get; set; }
        public Nullable<DateTime> date_occurrenced_from { get; set; }
        public Nullable<DateTime> date_occurrenced_to { get; set; }
        public string time_occurrenced { get; set; }
        public string country_id { get; set; }
        public string case_area { get; set; }
        public string subdistrict_id { get; set; }
        public string subdistrict_text { get; set; }
        public string district_id { get; set; }
        public string district_text { get; set; }
        public string province_id { get; set; }
        public string province_text { get; set; }
        public string postcode
        {
            get
            {
                return remark_hide ?? "";
            }
            set
            {
                remark_hide = value;
            }
        }
        private string postcode_hide = "";
        public string latitude { get; set; }
        public string longitude { get; set; }
        public int? case_value { get; set; }
        public string severity_id { get; set; }
        public string severity_text { get; set; }
        public string priority_id { get; set; }
        public string priority_text { get; set; }
        public string secret_id { get; set; }
        public string secret_text { get; set; }
        public string is_secret { get; set; }
        public string is_in_court { get; set; }
        public string is_in_court_text { get; set; }

        public string remark
        {
            get
            {
                return remark_hide ?? "";
            }
            set
            {
                remark_hide = value;
            }
        }

        private string remark_hide = "";
        public string tq_key { get; set; }
        public string used_inform_with { get; set; }
        public Nullable<DateTime> created { get; set; }
        public string created_by { get; set; }
        public string created_by_text { get; set; }
        public Nullable<DateTime> updated { get; set; }
        public string updated_by { get; set; }
        public string updated_by_text { get; set; }
        public List<CaseOrgOwner> list_case_org_owner { get; set; }
        public List<CaseAttachment> list_case_attachment { get; set; }
        public string case_id { get; set; }
        public string case_code { get; set; }
        public string objective_id { get; set; }
        public string objective_text { get; set; }
        public string type_id { get; set; }
        public string type_text { get; set; }
        public string status_id { get; set; }
        public string status_text { get; set; }
        public string summary { get; set; }
        public string defendant
        {
            get
            {
                return defendant_hide ?? "";
            }
            set
            {
                defendant_hide = value;
            }
        }

        private string defendant_hide = "";
        public Nullable<DateTime> date_opened { get; set; }
        public int? sla { get; set; }




        public string org_master_id { get; set; }
    }
}